<template>
	<view class="kefu">
		<view class="phone code">
			<view class="html" v-html="getContent()">
				
			</view>
		</view>
	</view>
</template>

<script>
	import {
		xieyi
	} from '../../api/user.js'
	export default {
		data() {
			return {
				data: []
			}
		},
		onLoad() {
			this.xieyi()
		},
		methods: {
			xieyi() {
				xieyi().then(res => {
					this.data = res.data
					console.log(this.data)
				})
			},
			getContent() {
				return this.data = this.data.replace('<img src="',
					'<img style="width:100%" src="' + this.websiteUrl)
			},
			getimg(url) {
				return this.websiteUrl + url
			}
		}
	}
</script>

<style lang="scss">
	.kefu {
		padding-top: 15px;
		
		.phone {
			display: flex;
			background: #fff;
			width: 90%;
			margin: auto;
			margin-bottom: 15px;
			height: 50px;
			line-height: 50px;
			box-sizing: border-box;
			padding: 0 10px;
			font-size: 14px;
			border-radius: 5px;
			.title{
				margin-right: 20px;
			}
			.msg{
				font-weight: bold;
			}

		}
		.code{
			
			height: auto;
			image{
				width: 50vw;
			}
		}
	}
</style>
